package com.ant.time.line.activities;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

/**
 * Created with AS
 * User: Ant
 * Date: 2018/10/7
 * Time: 11:24
 * Name: BaseActivity
 * Description:
 *
 * @author Ant
 * @version 1.0.0
 */
public abstract class BaseActivity extends AppCompatActivity
        implements IActivity, View.OnClickListener {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initLayout();
        initUi();
        initData();
        initListener();
    }

    @Override
    public void onClick(View v) {

    }

    public void jump(Class<? extends BaseActivity> targetClass) {
        startActivity(new Intent(this, targetClass));
    }
}
